import { MagicTowerInfoPanel } from "../magicTower/MagicTowerInfoPanel";
import { PloughConditionPanel } from "./PloughConditionPanel";
import { Language } from "../../../../../extend/language/Language";
import { Cache } from "../../../cache/Cache";
type int = number;
//class PloughCopyInfoPanel
    
    export  class PloughCopyInfoPanel extends MagicTowerInfoPanel
    {
        constructor()
        {
            super();
            return;
        }

        public /* override */ showPanelByIndex(arg1: int): void
        {
            if (!this._conditionPanel) 
            {
                this._conditionPanel = new PloughConditionPanel();
                this._conditionPanel.x = 0;
                this._conditionPanel.y = 22;
                _bodySp.addChild(this._conditionPanel);
            }
            this._conditionPanel.visible = true;
            return;
        }

        public updatePloughInfos(): void
        {
            this._conditionPanel.updatePloughInfos();
            _titleSp.title = Language.getStringByParam(36682, Cache.instance.ploughCopy.curFloor);
            return;
        }

        /* internal */ /* var */_conditionPanel: PloughConditionPanel;
    }
